docs: Update code demo for newer glib
authorBenjamin Otte <otte@redhat.com>
Sat, 10 Dec 2011 04:26:06 +0000 (05:26 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 10 Dec 2011 07:00:26 +0000 (08:00 +0100)
gtk/gtktreeselection.c

index 8ea86dce3c3c031f192f88ec9bbd7c034ccffef7..071a87ba6d195653f9a4a6e299aa90ed308c35a1 100644 (file)
@@ -554,8 +554,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection  *selection,
  *
  * To free the return value, use:
  * |[
- * g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL);
- * g_list_free (list);
+ * g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
  * ]|
  *
  * Return value: (element-type GtkTreePath) (transfer full): A #GList containing a #GtkTreePath for each selected row.